package com.jksj;

import com.sunfeng.TimeUtils;

public class Demo01 {
    public static void main(String[] args) {

        Thread thread1 = new Thread(new Runner1());
        Thread thread2 = new Thread(new Runner2());
        thread1.start();
        thread2.start();
      //  TimeUtils.sleep(1);
        System.out.println("========1========");
        thread2.interrupt();
        System.out.println("========2========");
        System.out.println(Thread.activeCount());
    }
}
